<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="Author" content="Johannes Sixt">
   <title>KDbg - User's Manual - Arguments, Environment</title>
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><a href="index.html">Contents</a></p>
<h1>
Specifying program arguments, working directory, environment variables</h1>
<p>Choose <i>Execution|Arguments</i> to open a dialog where you can set program
arguments, the working directory for your program, and environment variables.</p>
<h2>
<a name="PgmArgs"></a>Program Arguments</h2>
<p>In the top edit box enter the arguments that shall be passed on to your
program. The button labeled ... next to the edit box lets you browse for a file;
the file name will be <em>inserted</em> in the edit box (at the cursor position).</p>
<p>Next time the program is started, the new arguments will be used.</p>
<h2>Settings</h2>
<p>This section is only available when a <a href="xslt.html">XSLT script is
debugged</a>. Here you can specify various flags that influence the
XSL translation and XSLDBG.</p>
<h2>
<a name="WorkingDir"></a>Working directory</h2>
<p>In the edit box below you can specify the working directory for your program.
The button labeled ... next to the edit box lets you browse for a directory.
Your program will use the new directory only when it is run the next time.</p>
<p>The working directory also applies to gdb itself! The directory that
you specify will be passed to gdb immediately, i.e. gdb will work with
the new setting as soon as you press <i>OK</i>. This can influence whether
source code files are found.</p>
<h2>
<a name="Environment"></a>Environment variables</h2>
<p>In the environment variables section type in an expression of the form
<tt>VARIABLE=value</tt>
to set the environment variable <tt>VARIABLE</tt> to the value <tt>value</tt>,
and click <i>Modify</i>. To remove a variable, select it from the list
below and click <i>Remove</i>. To change the value, edit the value in the
edit field and click <i>Modify</i>. If you change the name of the variable
and click <i>Modify</i>, you add a new variable! The new environment variables
will be used by your program the next time it is run.</p>
</body>
</html>
